package com.wnxy.sk.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author Jet
 * @since 2022-10-11
 */
@Getter
@Setter
@TableName("pms_product")
@ApiModel(value = "Product对象", description = "商品表")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("子标题")
    private String subTitle;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("促销价格")
    private BigDecimal promotionPrice;

    @ApiModelProperty("销量")
    private String sale;

    @ApiModelProperty("折扣")
    private String discount;

    @ApiModelProperty("货号")
    private String productSn;

    @ApiModelProperty("删除状态：0->未删除；1->已删除")
    private Integer deleteStatus;

    @ApiModelProperty("上架状态：0->下架；1->上架")
    private Integer publishStatus;

    @ApiModelProperty("新品状态:0->不是新品；1->新品")
    private Integer newStatus;

    @ApiModelProperty("推荐状态；0->不推荐；1->推荐")
    private Integer recommandStatus;

    @ApiModelProperty("审核状态：0->未审核；1->审核通过")
    private Integer verifyStatus;

    @ApiModelProperty("分类编号")
    private Integer productCategoryId;

    @ApiModelProperty("商品分类名称")
    private String productCategoryName;

    @ApiModelProperty("图片")
    private String pic;

    @ApiModelProperty("排序")
    private String sort;

    @ApiModelProperty("赠送的积分")
    private String giftPoint;

    @ApiModelProperty("限制使用的积分数")
    private String usePointLimit;

    @ApiModelProperty("商品描述")
    private String description;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("最后更新时间")
    private Date updateTime;


}
